package com.uam.core.entity.model.entity.model;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public class TaskTrackDetail extends TaskDetail {

	private List<TrackPoint> track = null;

	private List<TaskTrackDetail> conflictTasks = null;

	public TaskTrackDetail() {
		this(0, null, null, null, null, 0, 0, 0.00D, 0.00D, 0, null, 0.00D, 0.00D, 0.00D, 0.00D, 0L, 0.00D, null, 0,
				null, null, null);
	}

	public TaskTrackDetail(int taskId, String taskName, JSONObject startPoint, JSONObject endPoint,
			JSONArray passPoints, int status, int mode, double distance, double cost, int aircraftId,
			String aircraftName, double minAltitude, double maxAltitude, double maxSpeed, double maxDuration,
			long startTime, double avgSpeed, String modelName, int authorId, String authorName, List<TrackPoint> track,
			List<TaskTrackDetail> conflictTasks) {
		super(taskId, taskName, startPoint, endPoint, passPoints, status, mode, distance, cost, aircraftId,
				aircraftName, minAltitude, maxAltitude, maxSpeed, maxDuration, startTime, avgSpeed, modelName, authorId,
				authorName);
		this.track = track;
		this.conflictTasks = conflictTasks;
	}

	public List<TrackPoint> getTrack() {
		return track;
	}

	public void setTrack(List<TrackPoint> track) {
		this.track = track;
	}

	public List<TaskTrackDetail> getConflictTasks() {
		return conflictTasks;
	}

	public void setConflictTasks(List<TaskTrackDetail> conflictTasks) {
		this.conflictTasks = conflictTasks;
	}

}
